package net.csdn.business.common.enums;

import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

/**
 * @ClassName Webhook相关枚举
 * @Description TODO
 * @Author zhangyl
 * @Date 2023/7/4 15:24
 */
public interface WebhookEnum {


    @Getter
    @AllArgsConstructor
    enum TargetTypeEnum {
        /**
         * 组织
         */
        ORG("organization"),
        /**
         * 仓库
         */
        REPOSITORY("repository"),
        ;
        final String code;
    }

    @Getter
    @AllArgsConstructor
    enum EventTypeEnum {
        /**
         * 组织相关event枚举
         */
        ORG_EVENT("organization"),
        /**
         * issue相关event枚举
         */
        ISSUE_EVENT("issues"),
        /**
         * issue_comment相关枚举
         */
        ISSUE_COMMENT_EVENT("issue_comment"),
        ;
        final String code;

    }
}